package com.question.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.question.entity.Question;
import com.question.entity.Records;
import com.question.mapper.QuestionMapper;
import com.question.mapper.RecordsMapper;
import com.question.service.QuestionService;
import com.question.service.RecordsService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordsServiceImpl extends ServiceImpl<RecordsMapper, Records> implements RecordsService {
   @Resource
   private RecordsMapper recordsMapper;
    public List<Records> answerdetail(Integer id, Integer uid){
        LambdaQueryWrapper<Records> lambdaQueryWrapper=new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(Records::getPid,id);
        lambdaQueryWrapper.eq(Records::getUid,uid);
        List<Records> list=recordsMapper.selectList(lambdaQueryWrapper);
        return list;
    }
}
